<?php 
$id_noticia = base64_decode($_GET["noticia"]);
$sql_notice = mysql_query("SELECT id,titulo,foto_principal,descricao_foto,texto,fonte FROM tbl_noticias WHERE id = $id_noticia ");
list($codigo,$tituloN,$foto_principal,$descricao_foto,$texto,$fonte)=mysql_fetch_array($sql_notice);
?>

<?php include 'internas/redesocial.php'; ?>
<div style="top:20px;width:100%;left:10px;float:left;">
    <div style="padding-top:10px;;height:30px;text-align:center;width:100%;background-color:#999;position:relative;font-family:Tahoma, Geneva, sans-serif;font-size:20px;">
    <?php echo $tituloN; ?>
    </div>
    <?php if ($foto_principal == ""){
	
	}else{ ?>
	<div style="margin:0 auto;position:relative;width:400px;height:250px;background-image:url(noticias/fotos/<?php echo $foto_principal; ?>);"></div>
    <?php }?> 
    <div style="position:relative;clear:both;width:100%;padding-left:10px;">
    <p>
    	<font face="Trebuchet MS, Arial, Helvetica, sans-serif" style="font-size:14px;">
		<?php echo nl2br($texto);?>
        </font>
    </p>
    </div>
</div>
